# import time
# result = 0
#
# start = time.time()
#
# for i in range(1,20000001):
#     result += i
#     i += 1
# stop = time.time()
# print(result)
# print(stop - start)




#1加到200000000的时间
import time
result = 0
t1 = time.time()
for i in range(1, 20000001):
    result += i
    i += 1
    t2 = time.time()
print(result)
print(t2 -t1)























